package com.zrx.domain.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author 张荣欣
 * @create ：2022/9/19  15:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "评论", description = "评论")
public class CommentVo {
    @TableId
    private Long id;



    @ApiModelProperty(value = " 文章id")
    private Long articleId;

    @ApiModelProperty(value = " 根评论id")
    private Long rootId;

    @ApiModelProperty(value = " 评论内容")
    private String content;

    @ApiModelProperty(value = " 所回复的目标评论的userid")
    private Long toCommentUserId;

    @ApiModelProperty(value = " 所回复的目标评论的用户名")
    private String toCommentUserName;

    @ApiModelProperty(value = " 回复目标评论id")
    private Long toCommentId;

    @ApiModelProperty(value = " ")
    private Long createBy;

    @ApiModelProperty(value = " ")
    private Date createTime;

    @ApiModelProperty(value = "评论人")
    private String username;

    @ApiModelProperty(value = " 头像")
    private String avatar;

    private List<CommentVo> children;


}
